<template>
  <div class="background">
    <div class="center">
      <Transition name="left-in">
        <div v-if="show" class="box box1"><personalbox /></div>
      </Transition>
      <Transition name="right-in">
        <div v-if="show" class="box box1">123</div>
      </Transition>
      <Transition name="left-in">
        <div v-if="show" class="box box2">234</div>
      </Transition>
      <Transition name="right-in">
        <div v-if="show" class="box box2">345</div>
      </Transition>
    </div>
  </div>
</template>
<script>
import personalbox from "./components/personal";
export default {
  components: {
    personalbox,
  },
  data() {
    return {
      show: false,
    };
  },
  mounted() {
    console.log("sss");
    this.show = true;
  },
};
</script>
>
<style lang="scss" scoped>
.background {
    background-image: url("../../assets/backGround/homepage.svg");
    background-size: 100% 100%;
//   background: #f3effb;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}
.center {
  display: grid;
  grid-template-columns: 40vw 40vw;
  grid-template-rows: 35vh 35vh;
  grid-gap: 40px 50px;
}
.box {
  background: #000;
  border-radius: 12px;
  background-image: linear-gradient(#404040, #202029);
  box-shadow: 0 0px 10px #000;
  padding: 20px 30px;
  transition-property: height, background-color,transform ;
  transition-duration: 1s, 0.5s, 1s;
  height: calc(35vh - 50px);
  z-index: 10;
}
.box1:hover{
transform:translateY(-2vh);
  height: 50vh;
  z-index: 100;
  background: #505050;
}
.box2:hover {
transform:translateY(-18vh);
  height: 50vh;
  z-index: 100;
  background: #505050;
}
</style>
